import request from '@/utils/request'

// 查询工作票列表
export function listWorkTicketInfo(query) {
  return request({
    url: '/business/workTicketInfo/list',
    method: 'get',
    params: query
  })
}

// 查询工作票详细
export function getWorkTicketInfo(id) {
  return request({
    url: '/business/workTicketInfo/' + id,
    method: 'get'
  })
}

// 新增工作票
export function addWorkTicketInfo(data) {
  return request({
    url: '/business/workTicketInfo',
    method: 'post',
    data: data
  })
}

// 修改工作票
export function updateWorkTicketInfo(data) {
  return request({
    url: '/business/workTicketInfo',
    method: 'put',
    data: data
  })
}

// 删除工作票
export function delWorkTicketInfo(id) {
  return request({
    url: '/business/workTicketInfo/' + id,
    method: 'delete'
  })
}
